/*package dao;

import javax.servlet.http.HttpServletRequest;

import org.hibernate.Session;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import process.ProcessClientModif;
import beans.ClientInfo;
import beans.HistoriqueFields;
import beans.UserRights;
import beans.user_Info;



public class ChangeModifiedField {
    / 
    Logger l = LoggerFactory.getLogger( ChangeModifiedField.class );
    private static final String ATT_CLIENT ="client";
    private ClientInfo cI;
    
    public ChangeModifiedField( HttpServletRequest request, Long ATT_CLIENT_INFO_ID ) {
        
        l.debug( " change Modified Field   "  +ATT_CLIENT_INFO_ID + " ------        ");
        Session session=new DaoFactory( request).getSession();
        session.beginTransaction();
        this.cI= (ClientInfo) session.get( ClientInfo.class,  ATT_CLIENT_INFO_ID  );
        session.getTransaction().commit();
        session.close();
        
        l.debug( ATT_CLIENT_INFO_ID + " pour modification de champ " );
        
    }
    
    // due to conflict between listComment and listHist, this function remains commented
    / private void update( HttpServletRequest request ) {
        Session session2=new DaoFactory( request).getSession();
        session2.beginTransaction();
        session2.update( this.cI.getListHist() );
        session2.getTransaction().commit();
        session2.close();
        
    } /
/ 
    public void nomFiliale(HttpServletRequest request,  String nomFiliale  ) {

        HistoriqueFields hF=new HistoriqueFields( request, "nomFiliale", cI.getNomFiliale(), nomFiliale);
        saveHistoriqueFields(request, hF);
        this.cI.setNomFiliale( nomFiliale );
        
    }
    
    

    // operations to be uncommented once the conflict between lists is resolved
    private void saveHistoriqueFields( HttpServletRequest request, HistoriqueFields hF ) {
        //cI.getListHist().add( hF );
        new ObjectOperations<HistoriqueFields>( request, hF ).save();
        //update(request);
        new ObjectOperations<ClientInfo>( request, this.cI ).update();
    }

    public void nomCorrespondant( HttpServletRequest request, String nomCorrespondant ) {
        
        HistoriqueFields hF=new HistoriqueFields( request, "nomCorrespondant", cI.getNomCorrespondant(), nomCorrespondant);
        saveHistoriqueFields(request, hF);
        this.cI.setNomCorrespondant( nomCorrespondant );
        
    }

  

   
    
    
    
     /

}
*/